#ifndef mainwindow_h
#define mainwindow_h

#include "juce_amalgamated.h"
#include "../MasterComponent.h"

class MainWindow: public DocumentWindow
{
private:
	MasterComponent* master;
public:
	MainWindow() :
		DocumentWindow(T("Nutrition Guide and Meal Planner"), Colours::white, DocumentWindow::allButtons,
				true)
	{
		setResizable(true, false);
		setTitleBarHeight(24);
		setContentComponent(master = new MasterComponent(this->getParentWidth(), this->getParentHeight()));
	}

	void closeButtonPressed()
	{
		JUCEApplication::getInstance()->systemRequestedQuit();
	}
};

#endif
